import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home'
import partner from '@/pages/partner'
import conven from '@/pages/conven'
import me from '@/pages/me'
Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'home',
      title: '社区支行',
      component: home,
    },
    {
      path: '/partner',
      name: 'partner',
      title: '合作商户',
      component: partner,
    },
    {
      path: '/conven',
      name: 'conven',
      title: '社区详情页',
      component: conven,
    },
    {
      path: '/me',
      name: 'me',
      title: '幸运转盘',
      component: me,
    }]
});

export default router;
